<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('chat/index')}">消息列表</a></li>
        </ul>
    </ul>
    <form class="form well" method="post">
        <div class="controls">
            昵称：<input type="text" name="user_nicename" value="{$map['user_nicename']}"/>
            内容关键词：<input class="input-small" type="text" name="message" value="{$map['message']}"/>
            回复关键词：<input class="input-small" type="text" name="reply_message" value="{$map['reply_message']}"/>
            观看类型：<select name="user_type" id="">
                <option value=0>全部</option>
                <option value='2'>只看老师</option>
                <option value='3'>只看用户</option>
            </select>
        </div>
        <a class="btn" href="{:U('chat/index')}">{:L('BACK')}</a>
        <button type="submit" class="btn btn-primary">{:L('SEARCH')}</button>
    </form>
    <div class="pagination">【 一共：{$count}条】{$Page}</div>
    <table class="table table-hover table-bordered table-list" id="menus-table">
        <thead>
        <tr>
            <th width="60">id</th>
            <th width="140">老师</th>
            <th >消息内容</th>
            <th width="300">回复消息内容</th>
            <th width="60">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="data" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.user_nicename}</td>                
                <td>【{$vo.create_time}】 {$vo.message} </td>
                <td>{$vo.reply_message}</td>
                <td>
                    <a href="{:U("chat/del",array("id" => $vo['id']))}">删除</a> 

                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$Page}</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>